package com.ssd;

import com.ssd.mixly.service.IMqttService;
import com.ssd.mixly.service.impl.MqttServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.annotation.Resource;

@SpringBootApplication
@MapperScan("com.ssd.mapper")
public class SsdPaymentApplication {

    public static void main(String[] args) {
//        ApplicationContext context =SpringApplication.run(SsdPaymentApplication.class, args);
//        System.out.println("支付模块启动成功！");
//        String[] topic = {"pay", "send"};
//        IMqttService mqttService = new MqttServiceImpl(topic,context);
        SpringApplication.run(SsdPaymentApplication.class, args);


    }

}
